package com.yonyou.pmclouds.workquality.service.rmiimpl;

import com.alibaba.dubbo.config.annotation.Service;
import com.yonyou.pmclouds.ApplicationConsts;
import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.workquality.entity.WorkqualityDetailVO;
import com.yonyou.pmclouds.workquality.mapper.WorkqualityDetailMapper;
import com.yonyou.pmclouds.workquality.service.rmiitf.WorkQuaDetailQuery;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service(version = ApplicationConsts.APPLICATION_VERSION, interfaceClass = WorkQuaDetailQuery.class)
public class WorkQuaDetailQueryImpl implements WorkQuaDetailQuery {

    @Autowired
    private WorkqualityDetailMapper mapper;

    @Override
    public WorkqualityDetailVO getById(String id) throws BusinessException {
        return mapper.getById(id);
    }

    @Override
    public WorkqualityDetailVO[] queryByIds(String[] pks) throws BusinessException {
        return mapper.queryByPks(pks);
    }
    @Override
    public List<WorkqualityDetailVO> queryByWorkqualityIds(String pks) throws BusinessException {
        return mapper.queryByWorkqualityIds(pks);
    }

}
